package com.run.spring.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @project springboot_demo
 * @author HeWenWen
 * @date 2024-09-19 11:34
 * @version 1.0
 */
@Configuration
public class OpenApiConfig {

    @Bean
    public OpenAPI customOpenApi(){
        return new OpenAPI()
                .info(
                        new Info()
                                .title("测试 OpenApi Title")
                                .version("1.1.0")
                                .description("update description")
                );
    }

}
